package cn.bgs.service.impl;

import cn.bgs.common.R;
import cn.bgs.pageUtil.MybatisPageHelper;
import cn.bgs.pageUtil.PageResult;
import cn.bgs.pojo.VehicleMiddle;
import cn.bgs.mapper.VehicleMiddleMapper;
import cn.bgs.service.IVehicleMiddleService;
import cn.bgs.vo.CwnumVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 车位中间表 服务实现类
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Service
public class VehicleMiddleServiceImpl extends ServiceImpl<VehicleMiddleMapper, VehicleMiddle> implements IVehicleMiddleService {

    @Autowired
    VehicleMiddleMapper vehicleMiddleMapper;

    @Override
    public R selectnumInfo(CwnumVo cwnumVo) {
        MybatisPageHelper.startPage(cwnumVo.getPageRequest());
        PageResult pageResult = MybatisPageHelper.getPageResult(vehicleMiddleMapper.selectnumInfo(cwnumVo));
        return R.ok().data("data",pageResult);
    }
}
